/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.escom.administracion.dao.hibernate;

import com.escom.administracion.dao.ServidorCorreoDAO;
import com.escom.administracionperfiles.hbm.dto.ServidorCorreoConf;
import com.escom.cliente.exception.DAOException;
import com.escom.hibernate.template.AdminSoportHibernate;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author yamil
 */
public class ServidorCorreoDAOHBM extends AdminSoportHibernate implements ServidorCorreoDAO,Serializable{

    public void create(ServidorCorreoConf correo) throws DAOException {
            save(correo);
    }

    public void edit(ServidorCorreoConf correo) throws DAOException {
        update(correo);
    }

    public void remove(ServidorCorreoConf correo) throws DAOException {
        delete(correo);
    }

    public ServidorCorreoConf find(Object id) throws DAOException {
        return  (ServidorCorreoConf) findByPrimaryKey(ServidorCorreoConf.class, id);
    }

    public List<ServidorCorreoConf> findAll() throws DAOException {
        return findAll(ServidorCorreoConf.class);
    }

    public int count() {
        return count();
    }

}
